package com.xb.loan.admin.dao.dict;


import com.xb.loan.admin.bean.dict.District;
import com.xb.loan.util.mybatis.MyBatisRepository;

import java.util.List;
import java.util.Map;

/**
 * 
 * DistrictDao
 * @author hyd
 */
@MyBatisRepository
public interface DistrictDao {
    int deleteByPrimaryKey(String districtId);

    int insert(District record);

    int insertSelective(District record);

    District selectByPrimaryKey(String districtId);

    List<District> selectAll();

    int updateByPrimaryKeySelective(District record);

    int updateByPrimaryKey(District record);
    
    List<District> queryDistrictByParentDistrictId(String parentDistrictId);
    List<District> queryAllDistrictInfo(Map<String, Object> map);
    int queryAllDistrictInfoCount(Map<String, Object> map);
    
    List<District> queryDistrictByLikeDistrictId(String districtId);
}